ComponentOne Data Source for Entity Framework
C1.WPF.LiveLinq Namespace / WpfExtensions Class / AsLive Method / AsLive<T>(ObservableCollection<T>,ViewOrder) Method
The type of the elements in the view.
The System.Collections.ObjectModel.ObservableCollection`1 to expose as a view.
Specifies whether to preserve source item order.

In This Topic
    AsLive<T>(ObservableCollection<T>,ViewOrder) Method
    In This Topic
    A typed specialization of the AsLive<T>(INotifyCollectionChanged,ViewOrder) method.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function AsLive(Of T)( _
       ByVal source As System.Collections.ObjectModel.ObservableCollection(Of T), _
       ByVal order As ViewOrder _
    ) As View(Of T)
    public static View<T> AsLive<T>( 
       System.Collections.ObjectModel.ObservableCollection<T> source,
       ViewOrder order
    )

    Parameters

    source
    The System.Collections.ObjectModel.ObservableCollection`1 to expose as a view.
    order
    Specifies whether to preserve source item order.

    Type Parameters

    T
    The type of the elements in the view.

    Return Value

    A view that contains the same elements as the System.Collections.ObjectModel.ObservableCollection`1.
    See Also